package com.pay.dubbo.wx;

import com.pay.beans.ReturnBean;
import com.pay.beans.ReturnContent;

/**
 * @Description: 商户登录服务
 * @see: WxCustomerServiceFacade 此处填写需要参考的类
 * @version 2017-09-06
 * @author jian.cao
 */
public interface WxCustomerServiceFacade {
	// 登录检测
	public ReturnBean logincheck(String username, String password, String openId) throws Exception;


	// 解除绑定
	public void deleteWxUser(String openId) throws Exception;

	/**
	 * 绑定微信用户(多账户)
	 * @param openId
	 * @param customerNo
	 * @param customerName
	 * @param mcc (	扫码商户：'1000';
	 * 				开店宝(i版)商户：'9999', '9998', '9997', '9990', '9991', '9992', '9993';
	 * 				掌易通；'2001';
	 * 				大pos商户：其他所有
	 * @param resource 来源
	 * @throws Exception
	 */
	void multBindWxUser(String openId, String customerNo, String mcc,
			String source) throws Exception;

	

	/**
	 * 解绑
	 * @param customerNo
	 * @param channel 通道
	 */
	public ReturnContent<Object> unbindingCustRelation(String customerNo, String channel);


	/**
	 * 删除解绑后商户redis残留数据
	 * @param idStart
	 * @param idEnd
	 * @param openId
	 * @param customerNo
	 */
	public void oneKeyRemoveLogoutCustRedis(String idStart,
			String idEnd,String openId, String customerNo);

}
